package com.ruoyi.project.relation.mapper.domain;

/**
 *
 **/
public final class GlobalUpdateBitColumnMOBuilder {
    private String attrName;
    private String tableName;
    private String tableIdName;
    private Long ownerId;
    //设置状态值,如果该值不为null,则不会置位和清零
    private Long attrValue;
    //如果清零置位同时存在,则会先置位再清零
    private Long setbBitAttrValue;
    //如果清零置位同时存在,则会先置位再清零
    private Long clrBitAttrValue;

    private GlobalUpdateBitColumnMOBuilder() {
    }

    public static GlobalUpdateBitColumnMOBuilder aGlobalUpdateBitColumnMO() {
        return new GlobalUpdateBitColumnMOBuilder();
    }

    public GlobalUpdateBitColumnMOBuilder attrName(String attrName) {
        this.attrName = attrName;
        return this;
    }

    public GlobalUpdateBitColumnMOBuilder tableName(String tableName) {
        this.tableName = tableName;
        return this;
    }

    public GlobalUpdateBitColumnMOBuilder tableIdName(String tableIdName) {
        this.tableIdName = tableIdName;
        return this;
    }

    public GlobalUpdateBitColumnMOBuilder ownerId(Long ownerId) {
        this.ownerId = ownerId;
        return this;
    }

    public GlobalUpdateBitColumnMOBuilder attrValue(Number attrValue) {
        this.attrValue = attrValue.longValue();
        return this;
    }

    public GlobalUpdateBitColumnMOBuilder setbBitAttrValue(Number setbBitAttrValue) {
        this.setbBitAttrValue = setbBitAttrValue.longValue();
        return this;
    }

    public GlobalUpdateBitColumnMOBuilder clrBitAttrValue(Number clrBitAttrValue) {
        this.clrBitAttrValue = clrBitAttrValue.longValue();
        return this;
    }

    public GlobalUpdateBitColumnMO build() {
        GlobalUpdateBitColumnMO globalUpdateBitColumnMO = new GlobalUpdateBitColumnMO();
        globalUpdateBitColumnMO.setAttrName(attrName);
        globalUpdateBitColumnMO.setTableName(tableName);
        globalUpdateBitColumnMO.setTableIdName(tableIdName);
        globalUpdateBitColumnMO.setOwnerId(ownerId);
        globalUpdateBitColumnMO.setAttrValue(attrValue);
        globalUpdateBitColumnMO.setSetbBitAttrValue(setbBitAttrValue);
        globalUpdateBitColumnMO.setClrBitAttrValue(clrBitAttrValue);
        return globalUpdateBitColumnMO;
    }
}
